package com.oa.modules.approvalsec1.service.impl;

import com.oa.common.utils.AppUtils;
import com.oa.common.utils.Constant;
import com.oa.modules.approvalsec1.dao.JointsDao;
import com.oa.modules.approvalsec1.entity.JointsEntity;
import com.oa.modules.approvalsec1.service.JointsService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.common.utils.PageUtils;
import com.oa.common.utils.Query;


/**
 * 联合体
 *
 * @author Hankaicheng
 * @email 785297226@qq.com
 * @date 2022-05-05 15:23:15
 */
@Service("jointsService")
public class JointsServiceImpl extends ServiceImpl<JointsDao, JointsEntity> implements JointsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        params.put("status", Constant.YES_OR_NO.YES.getValue());
        IPage page= AppUtils.getPage(new Query<JointsEntity>(), params);
        return AppUtils.setPage(page, baseMapper.findPage(params), baseMapper.findRecords(page, params));
    }

}
